package com.ptswitch.material.util;

import org.hxzon.project.MyHibernateResultTransformer;

import com.ptswitch.material.model.common.HTree;

@SuppressWarnings("serial")
public class HTreeResultTransformer extends MyHibernateResultTransformer<HTree> {
    public static final HTreeResultTransformer instance = new HTreeResultTransformer();

    @Override
    public HTree transformTuple(Object[] tuple, String[] aliases) {
        HTree htree = new HTree();
        htree.setId(getColumnValue(String.class, "id", tuple, aliases));
        htree.setPid(getColumnValue(String.class, "pid", tuple, aliases));
        return htree;
    }
}
